TRANSFORMING TEXT
A StrongED window has on its smarticon-bar the apply icon. By SHIFT-dragging a RiscLua program onto it, the text
in the window can be transformed. Alternatively, by CTRL-dragging
onto it, a new StrongED window containing the transformed text will
be opened. The RiscLua program must either be in a file of type Lua
or else have its first line start with #!lua. The program - or script as the jargon has it -
can read the contents of the StrongED window as if they
were in a file whose pathname were given by the value of arg[1] . The output from the program, as produced
by the print function, for example, is the
transformed text.The symbol # initiates a comment in RiscLua if it
occurs as the first character on the first line.If you do not have StrongED you can still transform textfiles with
RiscLua scripts by using the Apply utility.
